/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package domain;

import java.net.ConnectException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author ParaSait
 */
public class SynchronizeThread extends Thread {
    private Client client;
    
    public SynchronizeThread(Client client) {
        this.client = client;
    }
    
    @Override
    public void run()
    {
        try {
            client.synchronizeFiles();
        } catch (ConnectException ex) {
            Logger.getLogger(SynchronizeThread.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
